package com.mpyy.pojo;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import lombok.*;
/**
* sale_order_desc 实体类
* Wed Feb 23 09:47:17 CST 2022 tangneng
*/ 
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SaleOrderDesc{

	private String salOrdDescId;

	private String salOrdId;

	private String productId;

	private Integer salOrdDescProNum;

	private Double salOrdDescProPrice;

	private String salOrdDescProName;

	private String salOrdDescProBatchNum;

	private Date salOrdDescProStartDate;

	private Date salOrdDescProValidityDate;

	private String salOrdDescComment;

	private String salOrdDescUnit;

	private String salOrdDescAgentiaTypeName;

	private String salOrdDescManufacturer;

	private String salRetDescProNum;

	private String null2;

	//分页参数
	private Integer page;

	private Integer limit;

	public void setPage(Integer page){
		this.page = ( page - 1 ) * this.limit;
	}

	//商品表
	private ProductInfo productInfo;

	//库存明细表
	private InventoryDesc inventoryDesc;

	//销售订单表
	private SaleOrder saleOrder;

	//客户表
	private CustomerInfo customerInfo;

	//搜索，开始日期
	private Date currentTimeStart;
	//搜索，结束日期
	private Date currentTimeEnd;

	SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");

	public void setCurrentTimeStart(String currentTimeStart){
		try {
			this.currentTimeStart = simpleDateFormat.parse(currentTimeStart);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}

	public void setCurrentTimeEnd(String currentTimeEnd){
		try {
			this.currentTimeEnd = simpleDateFormat.parse(currentTimeEnd);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}

	//搜索，客户名称
	private String custName;

	//商品数量
	private int countNum;

	//进货表
	private PurchaseStock purchaseStock;
	//仓库表
	private DepotInfo depotInfo;
	//员工表
	private EmployeeInfo employeeInfo;
	//供货商表
	private SupplierInfo supplierInfo;
	/*药剂类型表*/
	private AgentiaType agentiaType;

	/*2022-03-22*/
	private Integer inveDescInventoryNum;

	/*2022-03-09*/
	private String proSize;

	private Integer proKeepDate;

	private String purRetId;


}

